<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return array of supported compression algorithms</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getstub.html">Phar::getStub</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.getsupportedsignatures.html">Phar::getSupportedSignatures</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="phar.getsupportedcompression" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::getSupportedCompression</h1>
  <p class="verinfo">(PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)</p><p class="refpurpose"><span class="refname">Phar::getSupportedCompression</span> &mdash; <span class="dc-title">Return array of supported compression algorithms</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-phar.getsupportedcompression-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>Phar::getSupportedCompression</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-phar.getsupportedcompression-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   No parameters.
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getsupportedcompression-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an array containing any of <em>Phar::GZ</em> or
   <em>Phar::BZ2</em>, depending on the availability of
   the <a href="book.zlib.html" class="link">zlib</a> extension or the
   <a href="book.bzip2.html" class="link">bz2</a> extension.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-phar.getsupportedcompression-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="pharfileinfo.getcompressedsize.html" class="function" rel="rdfs-seeAlso">PharFileInfo::getCompressedSize()</a> - Returns the actual size of the file (with compression) inside the Phar archive</span></li>
    <li class="member"><span class="function"><a href="pharfileinfo.iscompressed.html" class="function" rel="rdfs-seeAlso">PharFileInfo::isCompressed()</a> - Returns whether the entry is compressed</span></li>
    <li class="member"><span class="function"><a href="pharfileinfo.compress.html" class="function" rel="rdfs-seeAlso">PharFileInfo::compress()</a> - Compresses the current Phar entry with either zlib or bzip2 compression</span></li>
    <li class="member"><span class="function"><a href="pharfileinfo.decompress.html" class="function" rel="rdfs-seeAlso">PharFileInfo::decompress()</a> - Decompresses the current Phar entry within the phar</span></li>
    <li class="member"><span class="function"><a href="phar.compress.html" class="function" rel="rdfs-seeAlso">Phar::compress()</a> - Compresses the entire Phar archive using Gzip or Bzip2 compression</span></li>
    <li class="member"><span class="function"><a href="phar.decompress.html" class="function" rel="rdfs-seeAlso">Phar::decompress()</a> - Decompresses the entire Phar archive</span></li>
    <li class="member"><span class="function"><a href="phar.cancompress.html" class="function" rel="rdfs-seeAlso">Phar::canCompress()</a> - Returns whether phar extension supports compression using either zlib or bzip2</span></li>
    <li class="member"><span class="function"><a href="phar.iscompressed.html" class="function" rel="rdfs-seeAlso">Phar::isCompressed()</a> - Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on)</span></li>
    <li class="member"><span class="function"><a href="phar.compressfiles.html" class="function" rel="rdfs-seeAlso">Phar::compressFiles()</a> - Compresses all files in the current Phar archive</span></li>
    <li class="member"><span class="function"><a href="phar.decompressfiles.html" class="function" rel="rdfs-seeAlso">Phar::decompressFiles()</a> - Decompresses all files in the current Phar archive</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getstub.html">Phar::getStub</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.getsupportedsignatures.html">Phar::getSupportedSignatures</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
